package lanqiao;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.sql.Date;
import java.util.Scanner;

public class millisecond {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        Date date =new Date(scanner.nextLong());

        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("HH:mm:ss");
        System.out.println(simpleDateFormat.format(date));

    }
}
